class NewsController < ApplicationController
  caches_page :rss
  def index
    list
    render :action => 'list'
  end
  
  def list
    @item_count=Item.date_count
    @item_pages, @items = paginate :items, :order=>"pubDate DESC", :per_page => 10
  end
  
  def rss
    @description="A feed of posts "
    @description+=" from all blogs in the ScotEdublogs site."
    @items=Feed.items_from_filtered_feeds(nil, nil, nil, nil, "")
    render :partial=>'shared/rss'
  end
end